<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>客运公司车型信息管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/rentproduct/tCargotype/">车型信息列表</a></li>
		<shiro:hasPermission name="rentproduct:tCargotype:edit"><li><a href="${ctx}/rentproduct/tCargotype/form">车型信息添加</a></li></shiro:hasPermission>
	</ul>
	<form:form id="searchForm" modelAttribute="tCargotype" action="${ctx}/rentproduct/tCargotype/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<div>
			<label>车型名称：</label>
			<form:input path="typename" htmlEscape="false" maxlength="50" class="input-medium"/>
			<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
		</div>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>车型名称</th>
				<th>可乘座位数</th>
				<th>行李箱容量</th>
				<th>车型描述</th>
				<th>裸车价</th>
				<th>超公里标准价</th>
				<th>超时长标准价</th>
				<th>空驶费标准价</th>
				<th>排序</th>
				<shiro:hasPermission name="rentproduct:tCargotype:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="tCargotype">
			<tr>
				<td><a href="${ctx}/rentproduct/tCargotype/form?cargotypeid=${tCargotype.cargotypeid}">
					${tCargotype.typename}
				</a></td>
				<td>
					${tCargotype.seats}
				</td>
				<td>
					${tCargotype.packs}
				</td>
				<td>
					${tCargotype.typedesc}
				</td>
				<td>
					${tCargotype.nudePrice}
				</td>
				<td>
					${tCargotype.outkmsfee}
				</td>
				<td>
					${tCargotype.outtimefee}
				</td>
				<td>
					${tCargotype.nonoccu}
				</td>
				<td>
					${tCargotype.sorts}
				</td>
				<shiro:hasPermission name="rentproduct:tCargotype:edit"><td>
					<a href="${ctx}/rentproduct/tCargotype/form?cargotypeid=${tCargotype.cargotypeid}">修改</a>
					<a href="${ctx}/rentproduct/tCargotype/delete?cargotypeid=${tCargotype.cargotypeid}" onclick="return confirmx('确认要删除该客运公司车型信息吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>